public class MethodDemo01{
	public static void main(String[]args){
		int one = addOne(10,20);   //调用整数加法方法
		float two = addTwo(10.3f,13.3f);  //调用浮点数加法方法
		System.out.println("addOne的计算结果是:" + one);
		System.out.println("addTWO的计算结果是:" + two);
	}
//定义两个加法方法
	public static int addOne(int x, int y){
		int add = 0;
		add = x + y;
		return add;
	}
	public static float addTwo(float x,float y){
		float add = 0;
		add = x + y;
		return add;
	}
}
